package extreme.fizzbuzz;

public class FirstHomework {
    public static String convert(int number) {
        String numberStr = String.valueOf(number);
        if (numberStr.contains("7")) {
            return "Fizz";
        }
        if (numberStr.contains("5")) {
            return "BuzzWhizz";
        }
        if (numberStr.contains("3")) {
            return "Fizz";
        }
        if (number % 105 == 0) {
            return "FizzBuzzWhizz";
        }
        if (number % 35 == 0) {
            return "BuzzWhizz";
        }
        if (number % 21 == 0) {
            return "FizzWhizz";
        }
        if (number % 15 == 0) {
            return "FizzBuzz";
        }
        if (number % 3 == 0) {
            return "Fizz";
        }
        if (number % 5 == 0) {
            return "Buzz";
        }
        if (number % 7 == 0) {
            return "Whizz";
        }
        return numberStr;
    }
}
